{extend name="common:base" /}


{block name="breadcrumb"}
<h1>
    用户管理
    <small>用户管理</small>
</h1>
<ol class="breadcrumb">
    <li class="active"><a href="{:url('/admin')}"><i class="fa fa-dashboard"></i> 控制台</a></li>
    <li class="active">用户管理</li>
</ol>
{/block}

{block name="search"}
<div class="pad margin no-print">
    <div class="callout callout-info" style="margin-bottom: 0!important;">
        <h4><i class="fa fa-info"></i> Note:</h4>
        这里显示一些用户检索项目。样式需要优化。
    </div>
</div>
{/block}

{block name="content"}
<!-- Default box -->
<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">用户列表</h3>
        <div class="pull-right">
            <a href="{:url('/admin/user/add')}" class="btn btn-success"><i class="fa fa-plus"></i> 添加用户</a>
        </div>

    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="table table-striped">
            <tr>
                <th style="width: 10px">#</th>
                <th>昵称</th>
                <th>电话</th>
                <th>邮箱</th>
                <th style="width: 230px;">操作</th>
            </tr>
            {volist name='list' id='user'}
            <tr>
                <td>1.</td>
                <td>{$user.nickname}</td>
                <td>
                    {$user.phone}
                </td>
                <td>
                    {$user.email}
                </td>
                <td>
                    <a href="#" class="btn btn-sm bg-olive btn-flat"><i class="fa fa-eye"></i> 查看</a>
                    <a href="#" class="btn btn-sm bg-orange btn-flat"><i class="fa fa-pencil"></i> 编辑</a>
                    <a href="javascript:;" class="btn btn-sm bg-maroon btn-flat ajax-delete">
                        <i class="fa fa-trash"></i> 删除
                    </a>
                </td>
            </tr>
            {/volist}

        </table>
    </div>
    <!-- /.box-body -->
    <div class="box-footer clearfix">
        <!--<ul class="pagination pagination-sm no-margin pull-right">分页</ul>-->
        {$list->render()}
    </div>
</div>
<!-- /.box -->
{/block}